home *** CD-ROM | disk | FTP | other *** search
- Path: news.voicenet.com!news
- From: artem@voicenet.com (Artem Koutchine)
- Newsgroups: fido7.watcom-general,comp.lang.c,comp.lang.c++,fido7.watcom-c
- Subject: HELP ME ASAP!! (passing an augument to DOS4GW program)
- Date: Sun, 11 Feb 1996 00:50:44 GMT
- Organization: Voicenet - Internet Access - (215)674-9290
- Message-ID: <4fj48j$bik@news.voicenet.com>
- NNTP-Posting-Host: philly259.voicenet.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- Hello !!!
-
- I need help with Watcom C/C++ 10.5.
- I am writing a program that have to get some arguments from a
- command line. It is DOS4GW extender program and i usuallly
- i declare main as
-
- int main (int argc, char* argv[])
-
- But somehow when i compile it as DOS4GW program the only
- argument it get is argv[0] even if i start the program with 4 params
- it still does not get them, but argc contains the right number of
- arguments.
-
- BUt somehow, when i compile it as normal DOS16 proggie it work
- perfectly.
-
- What is the problem ? PLEASE HELP !
-
- Thank you
-
- Artem
-
-